package com.interview01;

/**
 * Copyright (C), 2018-2020
 * FileName: President 饿汉式
 * Author:   kongfanyu
 * Date:     2020/12/4 16:02
 */
public class President {

    private static final President p = new President();

    private President(){
        System.out.println("创建总统对象");
    }

    public static President getInstance(){
        return p;
    }

}
